/**
 * Created by wangmiao on 15-06-01.
 */
var OutlerCenterApp = {};

var App = angular.module('OutlerCenterApp', ['ionic','OutlerCenterApp.filters', 'OutlerCenterApp.services', 'OutlerCenterApp.directives']);

App.config(function($stateProvider, $urlRouterProvider) {

	  $stateProvider
	    .state('tabs', {
	      url: "/tab",
	      abstract: true,
	      templateUrl: "resources/templates/tabs.html"
	    })
	    .state('tabs.card', {
	      url: "/cardBinding",
	      views: {
	        'card-tab': {
	          templateUrl: "card/binding",
	          controller: 'CardController'
	        }
	      }
	    })


	   $urlRouterProvider.otherwise("/tab/cardBinding");

	});
/*
App.config(['$routeProvider', function($routeProvider){
	
	//商城
	$routeProvider.when('/Store',{
        templateUrl:'Store',
        controller:'StoreController'
     });
	
	//订单（后期扩展成购物车）
	$routeProvider.when('/Cart',{
        templateUrl:'Cart',
        controller:'CartController'
     });
	
	//个人中心
	$routeProvider.when('/MyCenter',{
        templateUrl:'MyCenter',
        controller:'MyCenterController'
     });
	
	//我的二维码
	$routeProvider.when('/QRCode',{
		templateUrl:'QRCode',
		controller:'QRCodeController'
	});
	
	//商品详情
	$routeProvider.when('/GoodsDetail/goods/:goodsId',{
		templateUrl:'Store/GoodsDetail',
		controller:'GoodsDetailController'
	});
	
	//下单购买（订单确认）
	$routeProvider.when('/Order/confirm/:goodsId',{
		templateUrl:'Order/confirm',
		controller:'OrderController'
	});
	
	$routeProvider.otherwise({redirectTo: '/MyCenter'});
	
}])

*/
